package com.joysuch.wwyt.bp.bean.risk;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @Author ZhangDong
 * @Date 2020/3/4 11:39
 */
@Data
public class BpTeamSafeRiskBean {

    @ApiModelProperty("风险研判表id-修改时传值")
    private Long safeRiskId;

    @ApiModelProperty("设备名称")
    @NotEmpty(message = "设备名称不能为空")
    private String deviceName;

    @ApiModelProperty("设备详情集合")
    @NotNull(message = "设备详情不能为空")
    @Valid
    private List<BpTeamSafeRiskDetailBean> detailBeanList;
}
